<!DOCTYPE html>
<html>
<head lang="en">
    <base href="${request.contextPath}/"/>
    <meta charset="UTF-8">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,minimum-scale=1.0">
    <title>漠河智慧社区</title>
    <link href="Content/wechat/css/reset.css" rel="stylesheet" type="text/css">
    <!--赞-->
    <link href="Content/wechat/css/demo.css" rel="stylesheet" type="text/css">
    <!--end 赞-->
    <link href="Content/wechat/css/tongCheng_xx.css" rel="stylesheet" type="text/css">

    <script src="Content/wechat/js/jquery.min.js"></script>
    <!--字体缩放-->
    <script src="Content/wechat/js/ziti.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
    <script>
        wx.config({
            debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
            appId: '${jsApiConfig.appId!}', // 必填，公众号的唯一标识
            timestamp: ${jsApiConfig.timestamp!}, // 必填，生成签名的时间戳
            nonceStr: '${jsApiConfig.nonceStr!}', // 必填，生成签名的随机串
            signature: '${jsApiConfig.signature!}',// 必填，签名
            jsApiList: ['chooseImage', 'uploadImage', 'updateAppMessageShareData', 'onMenuShareAppMessage','updateTimelineShareData'] // 必填，需要使用的JS接口列表
        });
    </script>
    <!--end 字体缩放-->
    <style type="text/css">
        .banner_sj{
            width: 100%;
            height: 5.5rem;
            overflow: hidden;
            vertical-align: middle;
        }
        .banner_sj img{
            vertical-align: middle;
            width: 100%;
            height: auto;
        }
        .add_up{
            width: 100%;
            height: auto;
            border-bottom: 0.5px solid #f5f5f5;
            padding-top: 0.2rem;
        }
        .add_up a{
            display: block;
        }
        .add_l{
            float: left;
            width: 80%;
            font-size: 0.3rem;
            padding: 0.2rem 0;
        }
        .add_r{
            float: right;
            width: 0.8rem;

        }

        .header_qw{
            width: 90%;
            height: auto;
            margin: 0 auto;

        }


    </style>
</head>
<body >
<div class="header">
    <div class="name_up clearfix">
<!--        <a></a>-->
        <h3>${company.companyname !''}</h3>
    </div>
    <!--头像信息-->
    <div class="banner_sj">
        <img src="${company.imgurl !''}" onerror=src="Content/wechat/images/zf.jpg">
    </div>

    <div class="add_up">
        <div class="header_xx ">

            <div class="add clearfix">
                <a href='tel:${company.companyphone !''}'>
                    <div class="add_l">
                        ${company.companyphone !''}
                    </div>
                    <div class="add_r">
                        <img src="Content/wechat/images/tel_red.png" style="float: left">
                    </div>
                </a>
            </div>

        </div>
    </div>
    <!--文字内容-->
    <div class="header">

        <div class="UEditorContent">
            ${company.content !''}
        </div>

    </div>

</div>

</body>
<script>
    var imgUrl = "${wxPortURl!}/Content/wechat/mhlogo.png";
    var link = "${wxPortURl!}/wechat/login?state=QCSJ_${company.id !''}";
    var title = "${company.companyname !''}";
    var desc ="电话：${company.companyphone !''}";
    wx.ready(function () {   //需在用户可能点击分享按钮前就先调用
        wx.updateAppMessageShareData({
            title: title, // 分享标题
            desc: desc, // 分享描述
            link: link, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: imgUrl, // 分享图标
            success: function () {

            }
        })

        wx.updateTimelineShareData({
            title: title, // 分享标题
            link: link, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: imgUrl, // 分享图标
            success: function () {

            }
        })
    });
    function getSimpleText(html) {
        var re1 = new RegExp("<.+?>", "g");//匹配html标签的正则表达式，"g"是搜索匹配多个符合的内容
        var msg = html.replace(re1, '');//执行替换成空字符
        return msg;
    }
</script>
</html>